export enum pluginStateEnum {
  NOT_INSTALL = 'not_install',
  PENDING = 'pending',
  INSTALLING = 'installing',
  INSTALLED = 'installed',
  INSTALL_FAILED = 'install_failed',
  UNINSTALLING = 'uninstalling',
  UNINSTALL_FAILED = 'uninstall_failed',
}

export const pluginStateEnumMap = {
  [pluginStateEnum.NOT_INSTALL]: '未安装',
  [pluginStateEnum.PENDING]: '等待中',
  [pluginStateEnum.INSTALLING]: '安装中',
  [pluginStateEnum.INSTALLED]: '已安装',
  [pluginStateEnum.INSTALL_FAILED]: '安装失败',
  [pluginStateEnum.UNINSTALLING]: '卸载中',
  [pluginStateEnum.UNINSTALL_FAILED]: '卸载失败',
};
